#ifndef VECTOR_MATH_H
#define VECTOR_MATH_H

#include <cmath>

namespace wen
{
class VectorMath
{
public:

	VectorMath() {}
	~VectorMath() {}

	static float DotProduct(float vertexX, float vertexY, float vertexZ,
							float lightX, float lightY, float lightZ)
	{
		return ((vertexX * lightX) + (vertexY * lightY) + (vertexZ * lightZ));
	}

	static void Normalize(D3DLIGHT9 &light)
	{
		float fModule = sqrt((light.Direction.x * light.Direction.x) +
						 (light.Direction.y * light.Direction.y) +
						 (light.Direction.z * light.Direction.z));

		light.Direction.x /= fModule;
		light.Direction.y /= fModule;
		light.Direction.z /= fModule;
	}
};
} // end namespace

#endif // VECTOR_MATH_H